<!DOCTYPE html>       
<!--
==========================================================================
gin-sns自动生成修改页面代码,只生成一次,按需修改.
date：2021-02-21 13:45:54 +0800 CST
path: template/module/user/edit.html
author：jon
==========================================================================
-->
<html lang="zh">
<head>
    {{template "header" (OssUrl)}}
    <link href="{{OssUrl}}/resource/ajax/libs/datapicker/bootstrap-datetimepicker.min.css" rel="stylesheet"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-user-edit">
        <input name="id" value="{{.user.Id}}" type="hidden">
            
            <div class="form-group">
                <label class="col-sm-3 control-label">用户名：</label>
                <div class="col-sm-8">
                    <input name="userName" value="{{.user.UserName}}" class="form-control"  type="text" required>
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">手机：</label>
                <div class="col-sm-8">
                    <input name="userMobile" value="{{.user.UserMobile}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">Email：</label>
                <div class="col-sm-8">
                    <input name="userEmail" value="{{.user.UserEmail}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">密码：</label>
                <div class="col-sm-8">
                    <input name="password" value="{{.user.Password}}" class="form-control"  type="text" >
                </div>
            </div>
             
            <div class="form-group">
                <label class="col-sm-3 control-label">类型：</label>
                <div class="col-sm-8">
                    <select name="type" class="form-control m-b" >
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>  
            
            <div class="form-group">
                <label class="col-sm-3 control-label">昵称：</label>
                <div class="col-sm-8">
                    <input name="nickname" value="{{.user.Nickname}}" class="form-control"  type="text" required>
                </div>
            </div>
             
            <div class="form-group">
                <label class="col-sm-3 control-label">性别1男2女3保密：</label>
                <div class="col-sm-8">
                    <select name="sex" class="form-control m-b" >
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>  
            
            <div class="form-group">
                <label class="col-sm-3 control-label">头像：</label>
                <div class="col-sm-8">
                    <input name="avatar" value="{{.user.Avatar}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">工作职位：</label>
                <div class="col-sm-8">
                    <input name="work" value="{{.user.Work}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">个性签名：</label>
                <div class="col-sm-8">
                    <input name="signature" value="{{.user.Signature}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">自我介绍：</label>
                <div class="col-sm-8">
                    <textarea name="description" class="form-control"
                              >{{.user.Description}}</textarea>
                </div>
            </div>     
            <div class="form-group">
                <label class="col-sm-3 control-label">所在省：</label>
                <div class="col-sm-8">
                    <input name="province" value="{{.user.Province}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">所在城市：</label>
                <div class="col-sm-8">
                    <input name="city" value="{{.user.City}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">所在地区：</label>
                <div class="col-sm-8">
                    <input name="area" value="{{.user.Area}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">联系地址：</label>
                <div class="col-sm-8">
                    <input name="contactAddr" value="{{.user.ContactAddr}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">被关注数量：</label>
                <div class="col-sm-8">
                    <input name="countFollower" value="{{.user.CountFollower}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">关注数量：</label>
                <div class="col-sm-8">
                    <input name="countFollowee" value="{{.user.CountFollowee}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">被关注数量：</label>
                <div class="col-sm-8">
                    <input name="countQuestion" value="{{.user.CountQuestion}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">被关注数量：</label>
                <div class="col-sm-8">
                    <input name="countAnswer" value="{{.user.CountAnswer}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">被关注数量：</label>
                <div class="col-sm-8">
                    <input name="countPost" value="{{.user.CountPost}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">被关注数量：</label>
                <div class="col-sm-8">
                    <input name="countBlog" value="{{.user.CountBlog}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">级别：</label>
                <div class="col-sm-8">
                    <input name="level" value="{{.user.Level}}" class="form-control"  type="text" >
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-3 control-label">积分：</label>
                <div class="col-sm-8">
                    <input name="integral" value="{{.user.Integral}}" class="form-control"  type="text" >
                </div>
            </div>
              
            <div class="form-group">
                <label class="col-sm-3 control-label">0未审核 1正常状态 2审核未通过 3删除：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="status" value="" required>
                        <label for="status" text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>  
              
    </form>
</div>
{{template "footer" (OssUrl)}}
<script src="{{OssUrl}}/resource/ajax/libs/datapicker/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript">
    var prefix = ctx + "module/user";
    $("#form-user-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-user-edit').serialize());
        }
    }
                                                                                                                
    
</script>
</body>
</html>